<?php
/**
 * 表: admin_users
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminUsers extends Model
{
    // 表: admin_users

    protected $table = 'admin_users';

    /**
     * 定义主键
     * @var string
     */
    protected $primaryKey = 'id';

    protected $appends = ['avatar_url'];

    public function getAvatarUrlAttribute()
    {
        return config('app.img_url').$this -> avatar;
    }
}
